home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gAllMute, gSavedSoundLevel
- puppetSound("mute/unmute sound")
- vorigMember = the member of sprite the clickOn
- set the member of sprite the clickOn to member("mute sound dn")
- updateStage()
- repeat while the stillDown
- nothing()
- end repeat
- set the member of sprite the clickOn to vorigMember
- updateStage()
- if gAllMute = 0 then
- set the member of sprite the clickOn to member("sound muted button")
- gSavedSoundLevel = the soundLevel
- set the soundLevel to 0
- gAllMute = 1
- else
- set the member of sprite the clickOn to member("sound on button")
- set the soundLevel to gSavedSoundLevel
- gAllMute = 0
- end if
- end
-
- on mouseEnter me
- if the member of sprite me.spriteNum = member("sound on button") then
- set the member of sprite 23 to member("mute sound prompt")
- else
- set the member of sprite 23 to member("unmute sound prompt")
- end if
- updateStage()
- end
-
- on mouseLeave
- set the member of sprite 23 to member("blank prompt")
- updateStage()
- end
-